<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  
</body>
<script>

    /**
     *
localStorage(本地存储)        大(5M)/cookie(4K)
  1.大：1280倍
  2.localStorage不会被发往服务器
  3.方便

  localStorage/sessionStorage
    localStorage      永久存储
    sessionStorage    会话期存储（浏览器关了就没了）

  localStorage的用法跟json一模一样
    localStorage.a=xxx            设置
    localStorage.a                读取
    delete localStorage.a         删掉
    for in                        遍历

  sessionStorage用法和localStorage一模一样

  localStorage    特别广
  sessionStorage  没见过 
     * 
     * 
     * 
     * 
     */
</script>

</html>